home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Panel Editor / Source / PanelEditorGlobals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-08  |  1.9 KB  |  103 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PanelEditorGlobals.h
  3.  
  4.     Contains:    PanelEditor globals
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _PANELEDITORGLOBALS_
  13. #define _PANELEDITORGLOBALS_
  14.  
  15. // -- OpenDoc --
  16.  
  17. #ifndef _ODTYPES_
  18. #include <ODTypes.h>
  19. #endif
  20.  
  21. #ifndef _ITEXT_
  22. #include <IText.h>
  23. #endif
  24.  
  25. // -- MacToolbox --
  26.  
  27. #ifndef __TYPES__
  28. #include <Types.h>
  29. #endif
  30.  
  31. class ODMenuBar;
  32. class ODFocusSet;
  33.  
  34.  
  35. //==============================================================================
  36. // Globals
  37. //==============================================================================
  38.  
  39. struct PanelEditorGlobals; // forward
  40.  
  41. extern    ODUShort            gGlobalsUsageCount;
  42. extern    PanelEditorGlobals*    gGlobals;
  43.  
  44.  
  45. typedef struct PanelEditorGlobals {
  46.     public:
  47.     PanelEditorGlobals();
  48.     ~PanelEditorGlobals() {}
  49.     
  50.     ODMenuBar*        fMenuBar;
  51.     ODFocusSet*        fUIFocusSet;    
  52.     Handle            fThumbnail;
  53.                 
  54.     ODTypeToken        fSelectionFocus;
  55.     ODTypeToken        fMenuFocus;
  56.     ODTypeToken        fKeyboardFocus;
  57.     ODTypeToken        fModalFocus;
  58.     ODTypeToken        fClipboardFocus;
  59.     ODTypeToken        fFrameView;
  60.     ODTypeToken        fLargeIconView;
  61.     ODTypeToken        fSmallIconView;
  62.     ODTypeToken        fThumbnailView;
  63.     ODTypeToken        fMainPresentation;
  64.     ODTypeToken        fListPresentation;
  65.     ODTypeToken        fUndefinedPresentation;
  66.             
  67.     ODScriptCode    fEditorsScript;
  68.     ODLangCode        fEditorsLanguage;
  69.     
  70.     // Panel Editor Specific
  71.     ODIText*        fUntitledName;
  72.     ODSShort        fScriptFont;
  73.     ODUShort        fScriptFontSize;
  74.     
  75. } PanelEditorGlobals;
  76.  
  77.  
  78. inline PanelEditorGlobals::PanelEditorGlobals()
  79. {
  80.     fMenuBar        = kODNULL;
  81.     fUIFocusSet        = kODNULL;    
  82.     fThumbnail        = kODNULL;
  83.                 
  84.     fSelectionFocus            = 0;
  85.     fMenuFocus                = 0;
  86.     fKeyboardFocus            = 0;
  87.     fModalFocus                = 0;
  88.     fClipboardFocus            = 0;
  89.     fFrameView                = 0;
  90.     fLargeIconView            = 0;
  91.     fSmallIconView            = 0;
  92.     fThumbnailView            = 0;
  93.     fMainPresentation        = 0;
  94.     fListPresentation        = 0;
  95.     fUndefinedPresentation    = 0;
  96.             
  97.     fEditorsScript        = 0;
  98.     fEditorsLanguage    = 0;
  99.     fScriptFont            = 0;
  100.     fScriptFontSize        = 0;
  101. }
  102.  
  103. #endif